﻿package {
	import flash.display.*;
	public class Platte extends Sprite {
		var stat:int; // 0=aus, 1=an
		var f:Flamme;
		public function Platte () {
			stat=0;
		}
		public function istAn():Boolean {
			return (stat==1);
		}
		public function schalte():void {
		if (stat == 0) {
			stat = 1;
			f = new Flamme(0,0); // relativ zum Bezugspunkt der Platte
			addChild(f);
		}
		else {
			stat = 0;
			removeChild(f);
		}
		}
	}
}